<extend name="../layout" />

<block name="main_content">
    
    <div class="row-fluid">
        
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span>
                    <h5>{:L('workflow_node')}</h5>
                    <a href="javascript:add('{$theWorkflow.id}', 'workflow_id');" class="label label-info">{:L('add_new')}</a>
                    <a href="javascript:history.go(-1);" class="label label-info">{:L('go_back')}</a>
                </div>
                <div class="widget-content nopadding">
                    <table class="table table-bordered table-striped with-check">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>{:L('name')}</th>
                                <th>{:L('execute_file')}</th>
                                <th>{:L('executor')}</th>
                                <th>{:L('status_text')}</th>
                                <th>{:L('operation')}</th>
                            </tr>
                        </thead>
                        <tbody>
                            <volist name="list" id="l">
                                <tr>
                                    <td>{$l.id}</td>
                                    <td>
                                        <a href="javascript:edit({$l.id});" class="btn btn-mini btn-{$l.btn_class}">{$l.name}</a>
                                    </td>
                                    <td>{$l.execute_file}</td>
                                    <td>{$l.executor}</td>
                                    <td>
                                        <span class="badge badge-{$l.status_class}">{$l.status_text}</span>
                                    </td>
                                    <td>
                                        <a href="{:U('/HOME/WorkflowNode/setPermission/id/'.$l[id])}" class="btn btn-primary btn-mini">{:L('set_permission')}</a>
                                        <a href="javascript:del({$l.id})" class="btn btn-danger btn-mini">{:L('delete')}</a>
                                    </td>
                                </tr>
                            </volist>
                        </tbody>
                    </table>
                </div>
            </div>
            
        </div>
    
</block>